package com.zhku.user.feignclient;

import com.zhku.base.model.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "shop-api", fallbackFactory = ShopClientFactory.class)
@RequestMapping("/shop")
public interface ShopClient {

    @PostMapping("/shopByName")
    public RestResponse<TtShop> shopByName(@RequestBody String name);
}
